#ifndef _BLOCKBREAKER_COMM_SIMPLEMESSAGE_H__
#define _BLOCKBREAKER_COMM_SIMPLEMESSAGE_H__

#include <Comm/Include/ISerializable.h>

class SimpleMessage
{
    public:
        SimpleMessage(const char* data, unsigned int size);

        explicit SimpleMessage(ISerializable* s);

        virtual ~SimpleMessage(void);

        unsigned int getData(char* &data);

        unsigned int getData(std::stringstream& s);

        SimpleMessage* clonar();

    private:
        char* data;
        unsigned int data_size;
};
#endif // _BLOCKBREAKER_COMM_SIMPLEMESSAGE_H__

